<template>
  <div>
    <van-popup v-model:show="dialogShow">
      <div class="main">
        <div class="title">提示</div>
        <div class="dialog-text">
          您已拼好全部拼图，是否重新进行游戏？重新进行游戏后之前获得奖励不重置，但清空所有道具。
        </div>
        <div class="btn-box">
          <div class="close btn" @click="onClose"></div>
          <div class="send btn" @click="send"></div>
        </div>
      </div>
    </van-popup>
  </div>
</template>

<script setup>
import { computed } from 'vue'
const props = defineProps({
  show: {
    type: Boolean,
    default: false,
  },
})
const emit = defineEmits(['close', 'send'])
const dialogShow = computed(() => {
  return props.show
})

// 确认按钮
const send = () => {
  emit('send')
}

// 取消按钮
const onClose = () => {
  emit('close')
}
</script>
<style lang="scss" scoped>
@import './style.scss';
</style>
